angular.module(moduleName + '.controllers')
  .controller('TabCtrl', function($scope,$rootScope,$state) {
    var vm = this;
    vm.items = [{
      'title':'首页',
      'click': $scope.goHome
    }, {
      'title':'学习',
      'click': $scope.goStudy
    }, {
      'title':'客户',
      'click': $scope.goCustomer
    }, {
      'title':'我的',
      'click': $scope.goMy
    }];
    vm.goHome = function(){
      $state.go('tab.home');
    };
    vm.goStudy = function(){
      $state.go('tab.study');
    };
    vm.goCustomer = function(){
      $state.go('tab.customer');
    };
    vm.goMy = function(){
      $state.go('tab.my');
    };
  });
